package com.netease.nie.dao;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.OrdersAddressMapper;
import com.netease.nie.model.OrdersAddress;

@Repository
public class OrdersAddressDao {

	@Resource
	private OrdersAddressMapper ordersAddressMapper;

	public OrdersAddress queryOrdersAddressByOrdersId(long orderId) {
		return ordersAddressMapper.queryOrdersAddressByOrdersId(orderId);
	}

	public void insertOrdersAddress(OrdersAddress ordersAddress) throws Exception {
		ordersAddressMapper.insertOrdersAddress(ordersAddress);
	}
	

}
